package org.easymis.crm.modules.crm.entitys.mybatis.mapper;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.easymis.crm.modules.crm.entitys.mybatis.dto.CrmLeads;

public interface CrmLeadsMapper {
	@Select("SELECT * FROM crm_leads")
	@Results({ @Result(property = "leadsId", column = "leads_id"), @Result(property = "leadsNo", column = "leads_no"),
			@Result(property = "leadsName", column = "leads_name"), @Result(property = "orgId", column = "org_id"),
			@Result(property = "orgName", column = "org_name"),
			@Result(property = "filialeOrgId", column = "filiale_org_id"),
			@Result(property = "filialeOrgName", column = "filiale_org_name"),
			@Result(property = "ownerId", column = "owner_id"), @Result(property = "ownerName", column = "owner_name"),
			@Result(property = "creatorId", column = "creator_id"),
			@Result(property = "creatorName", column = "creatorName"),
			@Result(property = "createTime", column = "create_time") })
	public List<CrmLeads> getList(HashMap<String, Object> params);

	public void save(CrmLeads bean);

	public void saveBatch(List<CrmLeads> beans);

	public void update(CrmLeads bean);

	public void delete(String leadsId);

	public void removeBatch(List<String> list);

	public void restoreBatch(List<String> list);

	public void deleteBatch(List<String> list);

	public CrmLeads findById(String leadsId);

	public List<CrmLeads> findByIds(List<String> list);
}
